/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.psa.bussines;

import br.edu.psa.model.Tema;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author JOAO e ANDRIGO
 */
@Stateless
@LocalBean
public class TesteBean {

    @PersistenceContext
    private EntityManager em;

    public void businessMethod() {
       Tema tema = new Tema();
       tema.setNome("Teste");
       em.persist(tema);
    }
    
    
}
